if (icon == NULL)
return;
- box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
+ box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
/* Reparent the child without destroying it */
g_object_ref (child);
gtk_container_remove (GTK_CONTAINER (item), child);
- gtk_box_pack_end (GTK_BOX (box), child);
+ gtk_container_add (GTK_CONTAINER (box), child);
g_object_unref (child);
gtk_container_add (GTK_CONTAINER (item), box);
image = gtk_image_new_from_gicon (icon, GTK_ICON_SIZE_MENU);
gtk_image_set_pixel_size (GTK_IMAGE (image), 16);
- gtk_box_pack_start (GTK_BOX (child), image);
+ gtk_container_add (GTK_CONTAINER (child), image);
+ gtk_box_reorder_child (GTK_BOX (child), image, 0);
}
g_object_notify (G_OBJECT (item), "icon");